//遍历数组的两种for循环方式
public class Demo_Arr {
    public static void main(String[] args){
        int arr[]={12,23,34,565,1,4,234,567,678};
        for (int i = 0; i < arr.length; i++)
            System.out.println(arr[i]);
        System.out.println("===============================");
        for(int element:arr)
            System.out.println(element);
    }
}
